import {setStorage,getStorage,removeStorage,clearStorage} from "./core.js";
import {TOKEN} from "./config.js"

export const setToken = (token)=>{setStorage(TOKEN,token)};//保存token
export const getToken = () =>{getStorage(TOKEN)};//读取token
export const removeToken = () =>{removeStorage(TOKEN)};//删除token
export const clearAll = ()=>{clearStorage()};//清空保存localstorage